package com.ehome.poct.terminal.start;

import com.baomidou.mybatisplus.core.toolkit.Sequence;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.cloud.openfeign.EnableFeignClients;



@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(basePackages = {"com.ehome.*"})
@EnableFeignClients(value = "com.ehome.*")
@Slf4j
public class TerminalApplication {

    public static void main(String[] args) {
        log.info("### Spring boot Application start ...");
        SpringApplication.run(TerminalApplication.class,args);
        log.info("### Spring boot Application ok ...");
    }

    @Bean
    public Sequence idUtil() {
        return new Sequence();
    }
}
